﻿using System;
using System.Collections.Generic;
using System.Drawing;
using System.Windows.Forms;
using Model;
using Rectangle = Model.Rectangle;

namespace PaintHW
{
    static class Program
    {
        class MockPaintModel : IPaintAppModel
        {
            public MockPaintModel()
            {
                Shapes = new List<Shape>();
                var rect = new Rectangle(new Point(5, 99))
                    {
                   LastPoint = new Point(340, 456)
                    };
                Shapes.Add(rect);

                rect = new Rectangle(new Point(885, 99))
                {
                   LastPoint = new Point(40, 6)
                };
                Shapes.Add(rect);
            }

            public List<Shape> Shapes { get; set; }
            public void Save(string filePath)
            {
                throw new NotImplementedException();
            }

            public void Open(string filePath)
            {
                throw new NotImplementedException();
            }

            public Point CanvasDimensions { get; set; }
        }
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            var paintAppModel = new MockPaintModel();
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new Form1(paintAppModel));
        }
    }
}
